/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cms.dataaccess;

import cms.exceptions.HibernateAccessLayerException;
import dto.Payment;
import java.util.List;

/**
 *
 * @author WU DAO BO
 */
public interface PaymentDAO {
    public void  insertPayment(Payment pay) throws HibernateAccessLayerException ;
    public void  deletePayment(Payment pay)throws HibernateAccessLayerException;
    public void  updatePayment(Payment pay)throws HibernateAccessLayerException;
    public  Payment findPayment(String userName,String payName,int type)throws HibernateAccessLayerException;
    public  List<Payment> findAllPayment()throws HibernateAccessLayerException;
    public  List<Payment> findAllPayment(int type)throws HibernateAccessLayerException;
    public  List<Payment> findPayment(String userName)throws HibernateAccessLayerException;
    public  List<Payment> findPayment(String userName,int type)throws HibernateAccessLayerException;
    public  List<Payment> findPaymentPayName(String payName,int type)throws HibernateAccessLayerException;
    public  List<Payment> findPaymentByApprover(String appover)throws HibernateAccessLayerException;
    public  List<Payment> findPaymentByStatus(String status)throws HibernateAccessLayerException;

        
}
